module.exports={
	getvalue(key,ctxs){
		var sortvalue = '';
		if(key === 'all'){
			var sortvalue = ctxs.all;
			var sqlsort = "PID";
		}else if(key === 'sale_count'){
			var sortvalue = ctxs.sale_count;
			var sqlsort = "SALES_COUNT";
		}else if(key === 'min_price'){
			var sortvalue = ctxs.min_price;
			var sqlsort = "PRESENT_PRICE";
		}
		return { "sortvalue":sortvalue,"sqlsort":sqlsort };
	}
}